Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Adds unit to metrics before calling CollectMetrics #1533

Merged
merged 1 commit into from
Feb 23, 2017

Conversation

jcooklin
Copy link
Collaborator

  • Adds 'unit' to metrics before calling collect

Fixes #1532

Summary of changes:

  • Adds unit to metrics before calling CollectMetrics

Testing done:

  • Manual
  • Existing unit

Given plugins:

▶ snaptel plugin list
NAME 			 VERSION 	 TYPE 		 SIGNED 	 STATUS 	 LOADED TIME
mock-grpc 		 1 		 collector 	 false 		 loaded 	 Wed, 22 Feb 2017 16:30:21 PST
test-file-publisher 	 1 		 publisher 	 false 		 loaded 	 Wed, 22 Feb 2017 16:30:22 PST

Task:

---
  version: 1
  schedule:
    type: "simple"
    interval: "1s"
  workflow:
    collect:
      metrics:
        ?intel?mock?/bar⽔: {}
      config:
        /random:
          return_error: false
      publish:
        -
          plugin_name: test-file-publisher
          config:
            file: /tmp/rand-file.out

Before

img

After

img

@intelsdi-x/snap-maintainers

- Adds 'unit' to metrics before calling collect
Copy link
Contributor

@IzabellaRaulin IzabellaRaulin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@IzabellaRaulin IzabellaRaulin merged commit 92062aa into intelsdi-x:master Feb 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants